import QtQuick 2.12

HItem {
    id: id_root
    title: "行车"

    function keyEvent(k){
        if (k === Qt.Key_Up) {
            console.log("up")
        } else if (k === Qt.Key_Down) {
            console.log("down")
        }else if (k === Qt.Key_Escape) {
            console.log("Escape")
        }else if (k === Qt.Key_Left) {
            console.log("Left")
            //myLoader.source = "qrc:/Item3.qml"
            //sigClose()
            sigUrl("qrc:/Item3.qml")
        }else if (k === Qt.Key_Right) {
            console.log("Right")
            //myLoader.source = "qrc:/Item5.qml"
            //sigClose()
            sigUrl("qrc:/Item5.qml")
        }
    }
}
